import request from '@/utils/axios'
var qs = require('qs');

// 获取资讯列表
export function getInfoList(params) {
  return request({
    url: '/news/List',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 添加资讯
export function addInfo(params) {
  return request({
    url: '/news/insert',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 编辑资讯
export function editInfoList(params) {
  return request({
    url: '/news/edit',
    method: 'get',
    params
  });
}
// 编辑
export function editInfo(params) {
  return request({
    url: '/news/editPost',
    method: 'post',
    data: qs.stringify(params)
  });
}


